package cn.zjgsu.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.zjgsu.domain.TbUser;
import cn.zjgsu.mapping.TbUserMapper;
import cn.zjgsu.service.ILoginService;
import cn.zjgsu.utils.SHA1;

@Service
public class LoginServiceImpl implements ILoginService{

	
	@Resource
	private TbUserMapper userMapper;
	
	@Override
	public TbUser selectUser(String username, String password) {
		
		password = SHA1.encrypt(password);
		return userMapper.selectUser(username, password);
		
	}

}
